﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.ActiveRecord;

namespace SinsenWeb.Models
{
    [ActiveRecord]
    public class Event: EntityBase<Event>, IEntity
    {
        [PrimaryKey]
        public int Id { get; set; }

        [Property]
        public string Name { get; set; }

        [Property]
        public DateTime EventDate { get; set; }

        [Property]
        public string EventPlace { get; set; }

        [Property]
        public string EventNotice { get; set; }

        [BelongsTo("ResponsibleId")]
        public Member Responsible { get; set; }

        [BelongsTo("EventTypeId")]
        public EventType EventType { get; set; }

        [BelongsTo("EventOccasionId")]
        public EventOccasion Occasion { get; set; }



    }
}
